package zhieasy.cn.common.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 获取课程表接口 -> 前端表单对象
 * @author zouchanglin
 */
@Data
@ApiModel(description = "获取课程表接口传参")
public class GetCourseForm {
    private String studentId;
    private String password;
    private String authCode;
    private String schoolYear;
    private String term;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetCourseForm that = (GetCourseForm) o;
        return studentId.equals(that.studentId) &&
                password.equals(that.password) &&
                schoolYear.equals(that.schoolYear) &&
                term.equals(that.term);
    }

    @Override
    public int hashCode() {
        String tmp = studentId + password + schoolYear + term;
        return tmp.hashCode();
    }
}
